package com.flag.liutao.modules.student.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.flag.liutao.modules.student.domain.Classes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.flag.liutao.modules.student.vo.ClassVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author godM
 * @since 2022-12-06
 */
@Repository
@Mapper
public interface ClassesMapper extends BaseMapper<Classes> {

    IPage<ClassVo> getClassesPage(IPage<ClassVo> iPage, @Param("keyword") String keyword,@Param("majorId") Long majorId, @Param("gradeId")Long gradeId);


    ClassVo getById(@Param("id") Serializable id);
}
